<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/mod2016/include/taglib.jsp"%>

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <%@ include file="/WEB-INF/views/mod2016/include/head.jsp"%>
    <link href="${ctxStatic}/plat2016/public/js/jquery-ztree/3.5.12/css/zTreeStyle/metro.css" rel="stylesheet" type="text/css"/>
    <title>报表配置</title>
</head>

<body class="bg-gray">
<jsp:include page="/pub/include/top"/>
<div class=" cbox clearfix mgt-10">
    <jsp:include page="/pub/include/nav?navCode=configList"/>
    <div class="con-wr mgb-10  fr">
        <!-- 面包屑 start -->
        <jsp:include page="/pub/include/bread?navCode=configList&fourHref=${nowHref}&fourMenu=输入参数配置" />
        <!-- 面包屑 end -->
        <!-- 三级菜单 start-->
        <jsp:include page="/pub/include/threeNav?menuName=输入参数配置" />
        <!-- 三级菜单 end-->
        <!-- 此处为页面代码 start-->
        <div class="searchbar searchbar-n bg-white ">
            <form:form id="searchForm" modelAttribute="tfEcReportConfigIn" action="${ctx}//report/configIn" method="post"
                       class="breadcrumb form-search ">
                <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
                <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>

                <div class="fl mgb-10 mgr-20">
                    <span class="fl  w80-tr">参数名称：</span>
                    <form:input path="itemName" htmlEscape="false" maxlength="50" class="input-n4 fl w-input162"/>
                </div>
                <div class="fl mgb-10 mgr-20">
                    <span class="fl  w80-tr">参数编码：</span>
                    <form:input path="itemCode" htmlEscape="false" maxlength="50" class="input-n4 fl w-input162"/>
                </div>
                <div class="fl mgb-10 mgr-20">
                    <span class="fl w80-tr">参数类型：</span>
                    <form:select path="itemType" class="w-input180 fl">
                        <form:option value="">请选择</form:option>
                        <form:options items="${fns:getDictList('REPORT_CONFIGIN_ITEMTYPE')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
                    </form:select>
                </div>
                <input type="hidden" name="reportId" value="${reportId }"/>

                <div class="mgl-80 clear ">
                    <input type="submit" value="查询" class="btn-yellow mgl-8">
                    <input type="button" value="清空" class="btn-gray-outline mgl-10 _goReset">
                </div>
            </form:form>
        </div>

        <div class="list-top pdlr-20 clear pdt-5">
            <div class="list-title fl fs14">业务列表<span class="fs12 font-gray">（共${page.count}条）</span>
                <a href="javascript:history.go(0)"><i></i></a>
            </div>
            <div class="list-manage fr">
                <a href="${ctx}/report/configIn/form?reportId=${reportId}" class="font-blue">新增</a><span>|</span>
                <a href="javascript:void(0);" class="font-blue">绑定</a><span>|</span>
                <a href="javascript:void(0);" class="font-blue">导入</a>
            </div>
        </div>
        <div class="list-con pdlr-20 clear">
            <table border="0" width="100%" class=" table-style4  js_table_style4">
                <thead>
            <tr onclick="checkAll(this)" class="erow">
                <td>
                    <div class="check-box"><i class="ico-check" id="checkAll"></i></div>
                </td>
                <td>参数名称</td>
                <td>参数编码</td>
                <td>参数类型</td>
                <td>参数值限制类型</td>
                <td>参数作用类型</td>
                <td>参数初始值</td>
                <td>备注</td>
                <td>修改人</td>
                <td class="al">操作</td>
            </tr>
            </thead>
                <tbody>
                <c:forEach items="${page.list}" var="configIn">
                    <tr class="erow">
                        <td>
                            <div class="check-box">
                                <i class="ico-check"></i>
                            </div>
                        </td>
                        <td>${fns:abbr(configIn.itemName,40)}</td>
                        <td>${configIn.itemCode}</td>
                        <td>${fns:getDictLabel(configIn.itemType,'REPORT_CONFIGIN_ITEMTYPE','')}</td>
                        <td>
                            <a href="javascript:void(0);" onclick="showDetailPop('${configIn.inConditionId}')">${fn:substring(configIn.checkType,0,10)}...</a>
                            <div id="${configIn.inConditionId}" style="display: none">${configIn.checkType}</div>
                        </td>
                        <td>${fns:getDictLabel(configIn.itemType,'REPORT_CONFIGIN_PARAMTYPE','')}</td>
                        <td>${configIn.initialValue}</td>
                        <td>${configIn.remark}</td>
                        <td>${configIn.updateStaffId}</td>
                        <td>
                            <div class="manage1 al">
                                <shiro:hasPermission name="report:configIn:edit">
                                    <a href="${ctx}/report/configIn/form?configInId=${configIn.inConditionId }&reportId=${reportId}" class="font-blue mgr-10">修改</a>
                                    <a href="${ctx}/report/configIn/delete?configInId=${configIn.inConditionId}&reportId=${reportId}" class="font-blue"  onclick="return confirmx('确认删除吗？',this.href)">删除</a>
                                </shiro:hasPermission>
                            </div>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
        <div class="pagination clear "> ${page}</div>
    </div>
</div>
</body>
<script type="text/javascript" src="${ctxStatic}/plat2016/public/js/hui.common.js"></script>
<script type="text/javascript">
    var msg = "${message}";
</script>
</html>
